# encoding=utf-8
from django.shortcuts import render
from django.http import HttpResponseRedirect
from django.urls import reverse


def verify_control(fun):
    def verify_con(request):
        if request.method == "POST":
            return fun(request)
        elif request.method == "GET":
            return HttpResponseRedirect(reverse("login:index"))
    return verify_con


        
